home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / w3 / Makefile.z / Makefile
Encoding:
Makefile  |  1998-05-21  |  3.3 KB  |  118 lines

  1. # where the w3 lisp files should go
  2. prefix = /usr/local
  3. infodir = $(prefix)/info
  4. datadir = $(prefix)/share
  5. lispdir = $(datadir)/emacs/site-lisp
  6. confdir = $(datadir)/emacs/w3
  7.  
  8. # what emacs is called on your system
  9. EMACS = emacs
  10.  
  11. # How to install a file
  12. INSTALL = install
  13.  
  14. # Various other stuff used
  15. RM    = rm -f
  16. CP    = cp
  17.  
  18. # Change this to be how to convert texinfo files into info files
  19. # examples:
  20. #    $(EMACS) -batch -q -l texinfmt -f batch-texinfo-format
  21. #    makeinfo
  22. MAKEINFO      = makeinfo
  23.  
  24. ############## no user servicable parts beyond this point ###################
  25. # Have to preload a few things to get a nice clean compile
  26.  
  27. DEPS = -l ./docomp.el -l ./w3-vars.el
  28.  
  29. # compile with noninteractive and relatively clean environment
  30. BATCHFLAGS = -batch -q -no-site-file
  31.  
  32. # files that contain variables and macros that everything else depends on
  33. CORE = docomp.el
  34.  
  35. URLSOURCES = \
  36.     url-nfs.el url-file.el url-cookie.el url-parse.el url-irc.el    \
  37.     url-gopher.el url-http.el url-mail.el url-misc.el url-news.el    \
  38.     url-vars.el url-auth.el mm.el md5.el url-gw.el ssl.el base64.el    \
  39.     url.el socks.el url-cache.el url-ns.el
  40.  
  41. CUSTOMSOURCES = # widget.el widget-edit.el
  42. CUSTOMOBJECTS = $(CUSTOMSOURCES:.el=.elc)
  43. URLOBJECTS    = $(URLSOURCES:.el=.elc)
  44.  
  45. SOURCES = \
  46.     $(CUSTOMSOURCES) $(URLSOURCES) mule-sysdp.el w3-widget.el    \
  47.     devices.el w3-imap.el css.el dsssl.el dsssl-flow.el font.el     \
  48.     images.el w3-vars.el w3-cus.el w3-style.el w3-keyword.el     \
  49.     w3-forms.el w3-emulate.el w3-props.el w3-auto.el w3-menu.el    \
  50.     w3-mouse.el w3-toolbar.el w3-prefs.el w3-speak.el w3-latex.el    \
  51.     w3-parse.el w3-display.el w3-print.el w3-about.el w3-hot.el    \
  52.     w3-e19.el w3-xemac.el w3.el w3-script.el w3-jscript.el        \
  53.     w3-elisp.el
  54.  
  55. OBJECTS = $(SOURCES:.el=.elc)
  56.  
  57. # Warning!  Currently, the following file can _NOT_ be bytecompiled.
  58. EXTRAS = w3-sysdp.el
  59.  
  60. .SUFFIXES: .elc .el .el,v
  61.  
  62. .el.elc:
  63.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $<
  64.  
  65. w3:    check-custom docomp.el $(OBJECTS)
  66.     @echo Build of w3 complete...
  67.  
  68. xemacs-w3:    docomp.el $(OBJECTS)
  69.     @echo Build of w3 complete...
  70.  
  71. fast:      check-custom docomp.el 
  72.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $(SOURCES)
  73.  
  74. all:    w3.info w3
  75.  
  76. install: all
  77.     @echo Installing in $(lispdir)
  78.     @( if [ ! -d $(lispdir) ]; then mkdir -p $(lispdir); fi )
  79.     @( if [ ! -d $(infodir) ]; then mkdir -p $(infodir); fi )
  80.     @( if [ ! -d $(confdir) ]; then mkdir -p $(confdir);  fi )
  81.     $(INSTALL) -m 644 $(SOURCES) $(OBJECTS) $(lispdir)
  82.     $(INSTALL) -m 644 $(EXTRAS) $(lispdir)
  83.     $(INSTALL) -m 644 w3.info* $(infodir)
  84.     $(INSTALL) -m 644 default.css $(confdir)/stylesheet
  85.     $(INSTALL) -m 644 html32.dsl $(confdir)/
  86.  
  87. clean:
  88.     $(RM) $(OBJECTS)
  89.  
  90. check-custom:
  91.     @./custom-check $(EMACS)
  92.  
  93. w3.info:    w3.txi
  94.     @$(MAKEINFO) w3.txi
  95.  
  96. w3.dvi:        w3.txi
  97.     tex w3.txi
  98.     texindex w3.cp  w3.fn  w3.ky  w3.pg  w3.tp  w3.vr
  99.     tex w3.txi
  100.     $(RM)     w3.cp  w3.fn  w3.ky  w3.pg  w3.tp  w3.vr     \
  101.         w3.cps w3.fns w3.kys w3.pgs w3.tps w3.vrs    \
  102.         w3.log w3.toc w3.aux
  103.  
  104. w3-vars.elc: w3-cus.elc w3-vars.el
  105. w3-display.elc: w3-display.el css.elc font.elc w3-imap.elc
  106. css.elc: css.el font.elc
  107. w3.elc: css.elc w3-vars.elc w3.el
  108. dsssl.elc: dsssl.el dsssl-flow.elc
  109.  
  110. autoloads: auto-autoloads.el
  111.  
  112. auto-autoloads.el: $(SOURCES)
  113.     $(EMACS) -batch -q -no-site-file \
  114.         -eval '(setq autoload-target-directory "'`pwd`'/")' \
  115.         -eval '(setq autoload-package-name "w3")' \
  116.         -l autoload \
  117.         -f batch-update-autoloads $?
  118.